<extend name='Layout/index'/>

<block name='breadcrumb'>
<li>
    <i class="icon-home home-icon"></i>
    <a href="<{:U('Index/index')}>">首页</a>
  </li>
  <li class="active">文章分类</li>
</block>
<block name='page-header'>

  <h1>
    文章分类
    <small>
      <i class="icon-double-angle-right"></i>
       分类管理
    </small>
  </h1>
</block>
<block name='main-content'>
  <div class="row">
    <div class="col-md-12">
      <table class="table table-striped">
        <thead>
          <tr>
            <td>ID</td>
            <td>分类名称</td>
            <td>pid</td>
            <td>path</td>
            <td>是否显示</td>
            <td>操作</td>
          </tr>
        </thead>
        <tbody>
          <volist name='data' id='vo'>
            <tr>
              <td><{$vo.id}></td>
              <td><{$vo.name}></td>
              <td><{$vo.pid}></td>
              <td><{$vo.path}></td>
              <td><a href="<{:U('Cagetroy/change',array('id'=>$vo['id']))}>" style="cursor:pointer"><if condition='$vo.display eq "1"'>显示<else/>隐藏</if></a></td>
              <td>
                <a href="<{:U('Cagetroy/delete',array('id'=>$vo['id']))}>" class="btn btn-danger">删除</a>
                <a href="<{:U('Cagetroy/edit',array('id'=>$vo['id']))}>" class="btn btn-info">修改</a>
              </td>
            </tr>
          </volist>
          <tr>
            <td colspan=6>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
</block>

